let mongoose=require('mongoose');

mongoose.connect('mongodb://localhost:27017/Blog',{useNewUrlParser:true}, function (err) {
    if(err){

        console.log('Connection Error:' + err)

    }else{

        console.log('Connection success!') }
});
module.exports=mongoose;